package com.wey.thread;

public class RunnableCase {

    public static void main(String[] args) {
        MyRunnable myRunnable = new MyRunnable();
        Thread thread = new Thread(myRunnable);
        thread.setName("MyRunnable_1");

        Thread thread2 = new Thread(myRunnable);
        thread2.setName("MyRunnable_2");
        thread.start();
        thread2.start();
    }
}
